﻿using System.Web.Http;

namespace Ttifa.WebApiBase.BaseApi
{
    public class BadRequestController : ApiController
    {
        [HttpGet, HttpPost, HttpPut, HttpDelete, HttpHead, HttpOptions, AcceptVerbs("PATCH")]
        public ApiResult NotFound(string message = "Route not found", string data = null)
        {
            return new ApiResult(ApiStatus.NotFound, message, data);
        }

        [HttpGet, HttpPost, HttpPut, HttpDelete, HttpHead, HttpOptions, AcceptVerbs("PATCH")]
        public ApiResult BadRequest(string message = "Bad request", string data = null)
        {
            return new ApiResult(ApiStatus.BadRequest, message, data);
        }
    }
}
